<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>玉灵 QQ:7031633 Email:webrx@126.com</title>
</head>

<body>
请选择语言:
<form action="" method="get" onchange="this.submit()">
    <select name="lang">
        <option value="zh_CN">选择语言</option>
        <option value="zh_CN">简体中文</option>
        <option value="en_US">美国英语</option>
        <option value="zh_TW">繁体中文</option>
    </select></form>
<hr>

<c:if test="${param.lang!=null}">
    <fmt:setLocale value="${param.lang}"/>
</c:if>

<fmt:bundle basename="res">
    <h1>    <fmt:message key="title" ></fmt:message></h1>
    <hr>
    <form action="reg.do">
        <label><fmt:message key="username" ></fmt:message>:<input type="text" name="name"></label>
        <br>
        <input type="submit" value="<fmt:message key="submit" ></fmt:message>">
    </form>
</fmt:bundle>
</body>
</html>
